package hutool;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.lang.Dict;
import org.junit.Test;

import java.util.Date;

public class DictTest {
    @Test
    public void test1(){
        Dict dict = Dict.create()
                .set("key1", 1)//int
                .set("key2", 1000L)//long
                .set("key3", DateTime.now())//Date
                .set("key4", "luo");//int
        Date date=dict.getDate("key3");
        long key2 = dict.getLong("key2");
        System.out.println(date);
        System.out.println(key2+1);

    }
}
